css: Fix parsing of scientific notation
authorMatthias Clasen <mclasen@redhat.com>
Sat, 29 Aug 2020 16:12:09 +0000 (12:12 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 29 Aug 2020 16:44:26 +0000 (12:44 -0400)
commit0f42d37f8bc7b6879be0a1b2766fc6119eb9f616
treee56783a857111ad48d0b1cc9ffa0787f7b8bea5b
parentf6adba57bb9bd0710802b97502a88853bc20675f
css: Fix parsing of scientific notation

The parser got its chars mixed up while parsing numbers
like 2.3e-04. While it is unlikely to meet such numbers
in human-generated css, we do have them e.g. when saving
render node trees with transforms.

Also add some css parser tests for number parsing.
gtk/css/gtkcsstokenizer.c
testsuite/css/parser/number-values.css [new file with mode: 0644]
testsuite/css/parser/number-values.ref.css [new file with mode: 0644]